.templates-picker {
  padding: var(--spacing-4);
  background-color: var(--neutral-50);
  border-radius: 4px;
  margin: var(--spacing-4) 0;

  .templates-picker-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-3);
    font-size: 14px;
    font-weight: 500;
    color: var(--neutral-600);
  }

  .templates-picker-list {
    display: flex;
    gap: var(--spacing-3);
    overflow-x: auto;
    padding-bottom: 4px;

    &::-webkit-scrollbar {
      display: none;
    }

    .templates-picker-item {
      flex-shrink: 0;
      width: 200px;
      padding: var(--spacing-3);
      border: 1px dashed var(--neutral-300);
      border-radius: 6px;
      text-align: left;
      cursor: pointer;
      transition-property: border-color;
      transition-duration: 500ms;

      &:hover {
        border-color: var(--neutral-400);
      }

      .templates-picker-item-name {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-primary);
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .templates-picker-item-title {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-secondary);
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .templates-picker-item-content {
        font-size: 12px;
        color: var(--neutral-400);
        line-height: 1.3;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
    }
  }
}


@media (max-width: 768px) {
  .templates-picker {
    .templates-picker-list {
      flex-direction: column;

      .templates-picker-item {
        width: 100%;
      }
    }
  }
}